package com.atguigu.service;

import com.atguigu.pojo.Page;
import com.atguigu.pojo.Server;
import org.springframework.jmx.export.naming.IdentityNamingStrategy;

import java.util.List;

//在service中建立serverservice,定义serverserviceImpl需要实现的方法
public interface ServerService {
    public void addServer(Server server);
    public void updateServer(Server server);
    public void deleteServerById(String id);
    public Server queryServerById(String id);
    public List<Server> queryServers();
    public List<Server> queryServersByServerTypeId(String serverTypeId);
    public List<Server> queryServersByServerTypeName(String serverTypeName);
    public Page page(Integer pageNo,Integer pageSize);
}
